<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>远程授权 - Remote MySQL</title>
	<link rel="stylesheet" type="text/css" href="{$Think.__APP_PUBLIC__}/css/reset.css">
	<link rel="stylesheet" type="text/css" href="{$Think.__APP_PUBLIC__}/css/public.css">
	<link rel="stylesheet" type="text/css" href="{$Think.__APP_PUBLIC__}/css/{$Think.MODULE_NAME}/remote_management.css">
	<script language="javascript" type="text/javascript" src="{$Think.__APP_PUBLIC__}/js/jquery-1.8.2.js"></script>
	<script language="javascript" type="text/javascript" src="{$Think.__APP_PUBLIC__}/js/{$Think.MODULE_NAME}/remote_management.js"></script>
	<script language="javascript" type="text/javascript">
		var HOST_NAME = "{$Think.HOST_NAME}";
		var MODULE = "{$Think.MODULE_NAME}";
		var URL = "__URL__";
	</script>

</head>

<body>
	<include file="Base:head" />
	<div>
		<fieldset>
			<legend align="center">&nbsp;MySQL 远程访问授权&nbsp;</legend>
			<table>
				<tr>
					<td class="title">当前IP：</td>
					<td>{$remote_IP}</td>
				</tr>
				<tr>
					<td class="title">当前用户：</td>
					<td>
						<select name="user">
							<option value="null" selected>请选择用户</option>
							<volist name="mysql_user_list" id="vo">
							<option value="{$vo['User']}">{$vo['User']}</option>
							</volist>
						</select>
					</td>
				</tr>
				<tr>
					<td class="title">有效期：</td>
					<td style="position: relative;">
						<div id="slide_bar"></div>
						<div id="slide_bar_activity"></div>
						<div id="slide_button_circle"></div>
					</td>
					<td>
						<div id="hours_show">8小时</div>
					</td>
				</tr>
				<tr id="remote_switch_area">
					<td class="title"><b>数据库远程访问：</b></td>
					<td>
						<div class="slide_button">
							<div class="bg_left">ON</div>
							<div class="bg_right">OFF</div>
							<div id="slide_block"></div>
						</div>
					</td>
					<td id="return_msg"></td>
				</tr>


				<tr id="remote_IP_manual">
					<td><b>请手动填写IP：</b></td>
					<td><input type="text" name="manual_IP_val" id="manual_IP_val" /></td>
				</tr>
			</table>
		</fieldset>
	</div>
</body>
</html>
